 
package com.farsunset.cim.client.android;

import android.net.NetworkInfo;

import com.farsunset.cim.nio.mutual.Message;
import com.farsunset.cim.nio.mutual.ReplyBody;
import com.farsunset.cim.nio.mutual.SentBody;

/**
 *
 * 类名称：OnCIMMessageListener
 * 类描述：
 * 创建人： 3979434
 * 修改人： 3979434
 * 修改时间： 2014-4-28 下午5:07:47
 * 修改备注：
 * @version 1.0.0
 *
 */
public interface OnCIMMessageListener
{

    public abstract void onConnectionClosed();

    public abstract void onConnectionSucceed();

    public abstract void onConnectionFailed(Exception exception);

    public abstract void onUncaughtException(Throwable throwable);

    public abstract void onMessageReceived(Message message);

    public abstract void onReplyReceived(ReplyBody replybody);

    public abstract void onSentSucceed(SentBody sentbody);

    public abstract void onSentFailed(Exception exception, SentBody sentbody);

    public abstract void onNetworkChanged(NetworkInfo networkinfo);
}

